export enum ROUTE_PATH {
  HOME = "/",
  LOGIN = "/login",
  REGISTER = "/register",
  QUESTION_EDIT = "/question/edit",
}

export function isLoginOrRegister(pathname:string){
    if((ROUTE_PATH.HOME,ROUTE_PATH.REGISTER).includes(pathname))
        return true
    return false
}

export function isNoNeedUserInfo(pathname:string){
  if((ROUTE_PATH.LOGIN,ROUTE_PATH.REGISTER).includes(pathname))
    return true
  return false
}